
const http = uni.$u.http;
import Config from "@/config/dev.js";

// 获取大会议程
export function getIndexMettingApi() {
  return http.post('/tbMeetingInfo/getIndexMeeting')
}

// 获取首页nanner
export function getBannerApi() {
  return http.post(Config.requestBase + '/tbAdvertiseContent/list', { tac_id : 20})
}

// 获取系统参数
export function getSettingsApi() {
  return http.post('/tbSettings/getSettings')
}

// 获取大会大会列表
export function getMettingListApi(data) {
  return http.post('/tbMeetingInfo/queryListForAPP', data)
}

// 获取大会详情
export function getMettingDetailApi(id) {
  return http.post('/tbMeetingInfo/detail', {tmi_id: id})
}

// 获取论坛列表
export function getForumListApi(data) {
  return http.post('/tbMeetingForum/queryListForAPP', data)
}

// 获取论坛时间列表
export function getForumTimeListApi() {
  return http.post('/tbMeetingForum/agendaDate')
}

// 
export function getForumDictApi() {
  return http.post('/tbWords/getChildCode', { tw_code: '01' })
}

export function getforumTypeListApi() {
  return http.post('/tbMeetingForum/forumTypeList')
}


// zixun jiekou xiangqing 
export function getInfomationApi(id) {
	return http.post('/tbInformation/ajax_get_infomation_list', {tiCataId: id})
}

// 大会详情
export function getForumsDetailApi(id) {
  return http.post('/tbMeetingForum/detail', {tmf_id: id})
}

// // 预约论坛
export function forumBookingApi(data) {
  return http.post('/tbMeetingForum/reserveMeeting', data)
}

// 大会邀请嘉宾
export function getMettingDetailPersonApi(data) {
  return http.post('/tbMeetingPerson/queryListForAPP', data)
}

// 获取日程列表
export function getScheduleInfoApi(data) {
  return http.post('/tbScheduleInfo/queryListForApp', data)
}

// 获取大会下的资讯
export function getMeetingNewsApi(data) {
  return http.post('/tbMeetingNews/pageList', data)
}

// 咨询详情
export function getMeetingNewsDetailApi(data) {
  return http.post('/tbMeetingNews/detail', data)

}

// 首页资讯详情
export function getHomeNewDetailApi(data){
  return http.post('/tbInformation/detail', data)
}